﻿
@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>Index</title>
</head>
<body>
    <div>
        @using (Html.BeginForm())
        {
            <p>用户名：@Html.TextBox("UserName", "", new { @id = "UserName" })<span class="NameTip"></span></p>
            <p>密码：@Html.Password("Password", "", new { @id = "Password" })<span class="PasswordTip"></span></p>
            <p>确认密码：@Html.Password("Pwd", "", new { @id = "Pwd" })<span class="PwdTip"></span></p>
            <button type="submit">提交</button>
        }
    </div>
    <script>
        function CheckInput() {
            var UserName = $("#UserName").val();
            var Password = $("#Password").val();
            var pwd = $("#Pwd").val();
            //判断用户名是否为空
            if (UserName == "") {
                $("#NameTip").removeClass("hidden");
            } else {
                $("#NameTip").addClass("hidden");
            }
            //判断密码是否为空
            if () {

            }

        }
    </script>
</body>
</html>
